Skip to content

RDKBACCL-1935: Minimalize the kernel modules for BPI-R4 extender build - #521

Open
ksaipr036 wants to merge 1 commit into
rdkcentral:developfrom
ksaipr036:RDKBACCL-1935
Open

RDKBACCL-1935: Minimalize the kernel modules for BPI-R4 extender build#521
ksaipr036 wants to merge 1 commit into
rdkcentral:developfrom
ksaipr036:RDKBACCL-1935

Conversation

@ksaipr036

Copy link
Copy Markdown
Contributor

Reason for Change: Remove kernel modules that are not required for the extender build to optimize kernel configuration.
Test Procedure: Verify that the basic EasyMesh(EM) functionality works as expected.
Risks: None

@ksaipr036
ksaipr036 force-pushed the RDKBACCL-1935 branch 8 times, most recently from 16fb978 to d64c8d1 Compare August 6, 2026 15:37
@ksaipr036
ksaipr036 marked this pull request as ready for review August 6, 2026 15:46
Copilot AI review requested due to automatic review settings August 6, 2026 15:46
Comment thread meta-rdk-mtk-bpir4/recipes-kernel/linux/files/rdkb_cfg/iptables_nf_ext.cfg Outdated
Comment thread meta-rdk-mtk-bpir4/recipes-kernel/linux/files/rdkb_cfg/iptables_nf_ext.cfg Outdated
Comment thread meta-rdk-mtk-bpir4/recipes-kernel/linux/files/rdkb_cfg/kernel_6_6_ext.cfg Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Reason for Change: Remove kernel modules that are not required for the extender build to optimize kernel configuration.
Test Procedure: Verify that the basic EasyMesh(EM) functionality works as expected.
Risks: None

Signed-off-by: ksaipr036 <kosika_saipriya@comcast.com>
Copilot AI review requested due to automatic review settings August 7, 2026 13:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.

Suppressed comments (5)

meta-rdk-mtk-bpir4/recipes-kernel/linux/linux-mediatek_%.bbappend:7

  • The bb.utils.contains(..., ' ', ...) branches intentionally return a single space. This works but is easy to misread as a meaningful SRC_URI entry and can complicate debugging (especially when combined with line continuations). Prefer returning an empty string when you want to add nothing.
    ${@bb.utils.contains('DISTRO_FEATURES', 'em_extender', ' file://rdkb_cfg/iptables_nf_ext.cfg', ' file://rdkb_cfg/iptables_nf.cfg', d)} \
    ${@bb.utils.contains('DISTRO_FEATURES', 'em_extender', ' ', ' file://rdkb_cfg/bridge_mode.cfg', d)} \

meta-rdk-mtk-bpir4/recipes-kernel/linux/files/rdkb_cfg/kernel_v6_ext.cfg:67

  • These lines are commented out as #CONFIG_FOO=y, which does not disable a Kconfig option in a config fragment—it just turns the line into a comment. If the intent is to ensure these options are off for the extender build, use the standard disable syntax (# CONFIG_FOO is not set or CONFIG_FOO=n) instead of commenting out the assignment.
########################################
# REMOVING THE BELOW CFG FROM EXISTING #
########################################
#CONFIG_USB_UAS=y
#CONFIG_BT=y

meta-rdk-mtk-bpir4/recipes-kernel/linux/files/rdkb_cfg/iptables_nf_ext.cfg:20

  • The kernel options below are commented out as #CONFIG_FOO=y, which does not disable them in a Kconfig fragment. If the extender build must actively turn these modules off (even if enabled by a base defconfig or another fragment), use # CONFIG_FOO is not set instead.
#==============================#
#  Removing below kernel mod   #
#==============================#  
#CONFIG_USB_NET_QMI_WWAN=y
#CONFIG_BT_HCIBTUSB=y

meta-rdk-mtk-bpir4/recipes-kernel/linux/files/rdkb_cfg/container_ext.cfg:18

  • These options are commented out as #CONFIG_FOO=y, which does not disable them in a Kconfig fragment. If the extender build is meant to remove these container/cgroup features, use # CONFIG_FOO is not set (or CONFIG_FOO=n) so the fragment actually forces them off.
########################################
# REMOVING THE BELOW CFG FROM EXISTING #
########################################
#CONFIG_CGROUP_PIDS=y
#CONFIG_CGROUP_DEVICE=y

meta-rdk-mtk-bpir4/recipes-kernel/linux/files/rdkb_cfg/kernel_6_6_ext.cfg:25

  • These lines are commented out as #CONFIG_FOO=y, which does not disable a Kconfig option in a config fragment (it only comments the line). If the extender build needs these options forced off, switch to # CONFIG_FOO is not set (or CONFIG_FOO=n).
########################################
# REMOVING THE BELOW CFG FROM EXISTING #
########################################
#CONFIG_BT=y
#CONFIG_USB_NET_AX88179_178A=y

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants